#ifndef __VIEW_SECTION_H
#define __VIEW_SECTION_H

#include<lib/list.h>

//section
typedef struct section
{
    int width;
    int height;
    int handle;
    int size;
    uint8_t *addr;
    list_t list;
} view_section_t;

int ViewSectionInit();
int ViewSectionExit();
int ViewSectionClear(view_section_t *section);
view_section_t *ViewSectionCreate(int width, int height);
int ViewSectionDestroy(view_section_t *section);

#endif